
#ifndef __SECURITY_TOKEN_PASSWORD_H
#define __SECURITY_TOKEN_PASSWORD_H

#include "SecurityToken.h"

/** A security token based on a password. */
class SecurityTokenPassword : public SecurityToken
{
   public:
      SecurityTokenPassword(const char *ipassword);
      virtual ~SecurityTokenPassword();
      int authenticateSSHSession(LIBSSH2_SESSION *tsession, const char *username);
      virtual sshauthtype getAuthenticationType() { return SSH_AUTH_TYPE_PASSWORD; }
      virtual int wasTried() { return tried; }
   private:
      /** Password for the interactive security token. */
      char *password;
};

#endif
